from conftest import login_token6
import pytest,requests


class Test_health:
    # 查询病友评论列表
    def test_health_01(self,login_token6):

        userId,sessionId=login_token6
        url='http://10.59.9.18/health/user/sickCircle/v1/findSickCircleCommentList'

        headers={
            'userId':str(userId),
            'sessionId':str(sessionId)
        }

        data={
            'sickCircleId':1,
            'page':2,
            'count':5
        }

        r=requests.get(url=url,headers=headers,params=data)
        r_json=r.json()
        print(r_json)

    # 采纳病友圈优秀评论
    def test_health_02(self,login_token6):
        userId,sessionId=login_token6
        url='http://10.59.9.18/health/user/sickCircle/verify/v1/adoptionProposal'
        headers={
            'userId':str(userId),
            'sessionId':str(sessionId)
        }
        data={
            'commentId':5,
            'sickCircleId':6
        }
        r=requests.put(url=url,headers=headers,params=data)
        r_json=r.json()
        print(r_json)